﻿@using www.SService
@{
    ViewBag.Title = "Danh sách các thể loại";
    Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
}
@Html.ActionLink("Thêm mới", "Add", "Type")
<div class="clear"></div>

<fieldset>
    <legend>Danh sách</legend>
    <div class="clear"></div>
    <table style="width: 100%; height: auto; border: 1px solid #008080;" >
        @if (ViewData["Data"] != null)
        {
            <tr style="background: #0000cd;color: #fff; height: 30px; font-size: 13px; font-weight: bold;text-align: center;">
                <th style="width: 40%;">Tên </th>
                <th style="width: 53%;">Mô tả</th>
                <th style="width: 7%;">Thao tác</th>
            </tr>
            foreach (var item in (List<RelaxTypeDataContract>)ViewData["Data"])
            {
            <tr style=" border-bottom: 1px solid #008080;height: 25px;">
                <td>@item.Name</td>
                <td>@item.Decription</td>
                <td>@Html.ActionLink("Sửa","Edit",new{id=item.Id}) | @Html.ActionLink("Xóa","Delete",new{id=item.Id},new {onclick="return confirmDelete();"})</td>
            </tr>
            }

        }
    </table>
</fieldset>
